﻿#ifndef QT_MATH_TEST_H
#define QT_MATH_TEST_H

#include <QPointF>
#include <QDebug>

void qt_math_test()
{
    QPointF p2(3,0);
    QPointF p1(1,3);
    QPointF p = p2 -p1;
    qDebug() << p2-p1;
    qDebug() << p/std::sqrt(QPointF::dotProduct(p,p));

    QPointF one(1,1);
    qDebug() << one/QPointF::dotProduct(one,one);

    QPointF th(100,100);
    qDebug() << th / QPointF::dotProduct(th,th);
}



#endif // QT_MATH_TEST_H
